package top.suven.base.util.createcode;

import java.util.HashMap;
import java.util.Map;

public enum EnumsTable {

	DAO("/dao/"),	//普通用户（没房间号）
	CACHE("/cache/"),
	SERVICE("/service/"),
	CONTROLLER("controller"),
	;		
	
	private String value;
	
	
	private static Map<String, String> tbTypeMap = new HashMap<String, String>();
	static {
		
		for(EnumsTable type : values()) {
			tbTypeMap.put(type.name(), type.getValue());
		}
	}

	

	EnumsTable(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}
	public static String getKey(String name){
		return tbTypeMap.get(name);
	}
}